package com.example.badyloans.servlet;

import com.example.badyloans.pojo.TAccountFlow;
import com.example.badyloans.pojo.TBid;
import com.example.badyloans.pojo.TBorrow;
import com.example.badyloans.pojo.loginlog;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface TBorrowService{


    int deleteByPrimaryKey(String id);

    int insertSelective(TBorrow record);

    TBorrow selectByPrimaryKey(String id);

    int sum();

    List<TBorrow> selectByPrimaryKeys(String id);

    int updateByPrimaryKeySelective(TBorrow record);

    int count(Integer[]borrowStates,String beginDate,String endDate);

    List<TBorrow> selectfenye(Integer[]borrowStates, Integer currentPageNo,
                              Integer pageSize,String beginDate,String endDate);

    int update(String borrowId,Integer borrowState );
    /***
     * 新增借款标的
     * @param tBorrow
     * @return
     */

    boolean addBorrow(TBorrow tBorrow);

    List<TBorrow> selectliubiao();
}
